<?php defined('_JEXEC') or die('Restricted access');?>
<script language="javascript" type="text/javascript">
var fieldMsg = {
	fid: "请选择农场",
	pid: "请选择植物",
	uid: "请选择记录人员",
	harvest_date: "请输入实际收割日",
	production:"请输入实际产量"      
};
</script>
<form id="adminForm" method="post" name="adminForm">
<fieldset>
	<div style="float: right;">
				<button class="submit" type="submit" onclick="saveForm(this.form);">
					保存</button>
				<button type="button" onclick="window.parent.document.getElementById('sbox-window').close();">
					取消</button>
	</div>
	<div class="configuration">
				新增收割记录	
	</div>
</fieldset>
<div class="">
	<fieldset class="adminform">
	<legend>新增收割记录</legend>
	<table class="admintable">
		<?php JHTML::_('farm.plantPlanDropList'); ?>      
        <?php JHTML::_('farm.userDropList', array('class' =>'required')); ?>
		<tr>
			<td width="120" class="key">
				实际收割日:
			</td>
			<td>
				 <?php echo JHTML::_('calendar', '2012-12-21', 'harvest_date', 'harvest_date', '%Y-%m-%d', array('class'=>'inputbox required', 'size'=>'25',  'maxlength'=>'19', 'readonly'=>'true')); ?>
			</td>
		</tr>
		<tr>
		
		<tr>
			<td width="120" class="key">
				实际产量:
			</td>
			<td>
				<input class="inputbox required" type="text" name="production" id="production" size="10" value="" />
			
			</td>
		</tr>
		
	</table>
	</fieldset>
</div>
<div class="clr"></div>
	<input type="hidden" name="task" value="saveHarvestRecord" />
	<input type="hidden" name="controller" value="<?php echo JRequest::getWord('controller', 'farms');?>" />
	<input type="hidden" name="option" value="com_farm" />
	<input type="hidden" name="id" value="" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>